<?php
global $USER_SETTING;
?>
<script type="text/javascript">

html = '<?
echo number_format($platezh['summ'], 2, $USER_SETTING['znak_drob'], ' ').' '.$platezh['schet_name'];
for($i = 1; $i <= 5; $i++)
{
	if($platezh['file'.$i])
	{
		$filename = $platezh['file'.$i."_comment"] ? $platezh['file'.$i."_comment"] : "Файл ".$i;
		?><br><a href="<?=UPLOAD_PATH.$platezh['file'.$i]?>" target=_blank><?=$filename?></a><? 
	}
}
?>';

parent.document.getElementById('pl_cell_<?=$oper['id']?>').innerHTML = html;
parent.closePop();

</script>

 